import requests
import time
url = "http://hd.chinatax.gov.cn/service/findCredit.do"

payload={'page': '10',
'location': '110000',
'code': ' ',
'name': ' ',
'evalyear': '2020'}




headers = {
  'Accept': '*/*',
  'Accept-Language': 'zh,zh-CN;q=0.9,en;q=0.8',
  'Connection': 'keep-alive',
  'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  'Cookie': 'HMF_CI=4d891a4d8971ac3ecb5a9344f15f06666e8906db79441b0a4a21a4738b81bcd4ac; HMY_JC=9ff43854b0d71bf1d526236438608d30b43410135a204f9f76960420cfb9984f5a,; HBB_HC=8cb975e98f372304b593e6e70b2050eac9fa0496257bc361a02dcaf861ed72ea6892bde54352231e3bbed97c0eb9586e57; yfx_c_g_u_id_10003701=_ck22042110021815013351018051670; yfx_f_l_v_t_10003701=f_t_1650506538501__r_t_1650506538501__v_t_1650506538501__r_c_0; JSESSIONID=326CC308BCE41FACFC33E1A71F5CD3C5; C3VK=3d0080; _Jo0OQK=2003299F56EB1086E4194F47334FEDD61A79AB6B0AFAC1DAF7F6638518605713D4A9F76B476FB37D466C0713AC694132909607B02C404A63B5468E0775E26C007641B918CCA8FE3BB944ED14892373145994ED1489237314599BE994A6718907CADGJ1Z1JQ==; C3VK=5b0572',
  'Origin': 'http://hd.chinatax.gov.cn',
  'Referer': 'http://hd.chinatax.gov.cn/nszx/InitCredit.html',
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36',
  'X-Requested-With': 'XMLHttpRequest'
}
# 准备好的代理ip
proxy = "61.216.185.88:60808"
proxies = {
        "https": "https://{0}".format(proxy),
        "http": "http://{0}".format(proxy),
 }

# ,proxies=proxies

response = requests.request("POST", url, headers=headers, data=payload)
# time.sleep(10)
print(response.text)
